package indi.gao;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

/**
 * @author :gaolei
 * @version :v1.0
 * @projectName :GLUtil
 * @description :
 * @createDate :2021/6/7 3:43 下午
 */
public class hualalaWebCatch {
    //http://npm.taobao.org/mirrors/chromedriver/
    public static void main(String[] args) {
        System.setProperty("webdriver.chrome.driver", "/Users/gaolei/file/personalCode/GLUnitTest/SeleniumTest/src/main/resources/chromedriver");
        ChromeDriver chromeDriver = new ChromeDriver();
        chromeDriver.get("https://lexiangla.com/?company_from=fc9d20da59cf11eaad575254002f1020");
        // 签到挣积分
        WebElement element = chromeDriver.findElement(By.className("check-btn"));
        element.click();

//        chromeDriver.close();
    }
}
